#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
//循环法进行字符串左旋
void Rotate(char arr[],int sz,int longs)
{
	while (longs)
	{
		char mid = arr[0];
		for (int i = 0; i < sz - 1; i++) {
			arr[i] = arr[i + 1];
		}
		arr[sz - 1] = mid;
		longs--;
	}
	return;
}
int main()
{
	char arr[10] = "ABCDEF";
	int longs,times;
	int sz = strlen(arr);
	printf("请输入旋转次数\n");
	scanf("%d", &times);
	longs = times % sz;
	Rotate(arr,sz,longs);
	printf("%s\n", arr);
	return 0;
}